#ifndef ETU_H
#define ETU_H

#include "Agent.h"
#include <vector>
#include <string>



class Etu : public Agent
{
	public:
		
		Etu(std::string ip, int port);
		~Etu();
		void start();
		pthread_t ecrire, lire;
		static void *gereEcriture(void *arg);
		static void *gereLecture(void *arg);

	private:
		bool AstPriority, repondu;
		pthread_mutex_t v;
		pthread_cond_t CL,CE;
		std::string etat;
};

#endif
